import os
from  vtdb import adbcli
from common import hztool
from langchain_community.document_loaders import Docx2txtLoader
from langchain_community.embeddings import DashScopeEmbeddings
from langchain_text_splitters import RecursiveCharacterTextSplitter

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import text
from sqlalchemy import create_engine
from db.mysqlconn import getMySession,myeng,mydbkey
from db.pgsqlconn import getPgSession,pgeng,pgdbkey,dfembfun
from sqlalchemy.ext.automap import automap_base
from doc import docloader
 
#docloader.docload("d:/beifen/aitest2.docx")
#docloader.pdfload("d:/beifen/aitest2.pdf")
#docloader.txtload("d:/beifen/aitest.txt","utf-8")
#docloader.loadall("d:/beifen/aitest2.pdf")
docloader.dirload("d:/beifen",glob="**/*.doc")
